<?php

/**
 * OverFish CMS
 *
 * @copyright  Copyright (c) 2010 Tomas Holub
 * @package    Overfish
 */

use Nette\Application\Presenter,
 Nette\Environment;


/**
 * Base class for all application presenters.
 *
 * @author     Tomas Holub
 * @package    Overfish
 */
abstract class BasePresenter extends Presenter
{
    /** @var \OverFish\Application\DatabaseManager */
    protected $databaseManager;

    public function __construct(\Nette\IComponentContainer $parent = NULL, $name = NULL)
        {
                parent::__construct($parent, $name);

                $this->databaseManager = Environment::getService('OverFish\Application\DatabaseManager');
        }

}
